package com.sloth.bear.dto.request;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Data
public class NamespaceRequest {
    
    @NotBlank(message = "空间名称不能为空")
    @Size(max = 255, message = "空间名称长度不能超过255个字符")
    private String name;
    
    @Size(max = 500, message = "空间描述长度不能超过500个字符")
    private String description;
    
    @Size(max = 20, message = "颜色代码长度不能超过20个字符")
    private String color;
    
    private Integer sortNo;

    /**
     * 权限：0 公开 1 私有
     */
    private Integer permission;
}